server

  1. bdunkleysmith

    B4J Question [Solved] B4JPackager11 / websocket project problem

    As recommended by @Erel in this thread, I have commenced migrating the communications in my project from http to websocket, however it's not been as simple as I thought it would be. In replacing the http based comms part of my project I hit some "roadblocks". So created a simple project to...
  2. S

    Android Code Snippet Upload a file to your server with HttpJob and php(included)

    4-25-2020 Pick a SINGLE File from Dialog box, Then upload it To a server on LAN Or Internet I wrote this B4A To be very small, simple, & easy to understand on a beginners level In Files Is the PHP script To handle single File upload And save As original filename php creates And appends a...
  3. M

    iOS Question Build Failed Local Mac Builder

    The following build commands failed: Ld /Users/<name>/Documents/B4iBuildServer/UploadedProjects/<user id>/Payload/<myappname>.app/ <myappname> normal arm64 (1 failure)
  4. soyVB6

    B4J Question ODBC Sybase

    Hi guys, I'm migrating an old system that I did some years in power builder. I could not achieve a connection to the database, this is what I have: In my user DSN (odbc) I have my database connected and it works like this for my old system. I managed to find a jconn2.jar library in the sybase...
  5. carlos7000

    Android Question Error: Nonce must be greater than...

    Hello I am using this function to send commands to a server private Sub SendCommand(workName As String, Command As String, Signature As Boolean, url as String) Dim ToSing As String If Signature Then url = X_PrivateUrl ToSing = "command=" & workName & "&" &...
  6. Alessandro71

    B4J Tutorial Running a B4J Server on Amazon EC2 Linux

    This procedure starts from a freshly installed AWS EC2 Linux instance and installs a B4J server, named B4J.jar, configured as a daemon. This tutorial assumes a basic knowledge of a Linux environment, expecially the vi editor. Prerequisites SSH access with ec2-user Device /dev/xvdh is available...
  7. avalle

    B4J Question How to call CallSubDelayed from a different Class Module

    Hi all, I have a B4J Server application implementing a REST API service with multiple Handler Class Modules. In one of these class modules I need to use CallSubDelayed to raise a callback event which is used in a Wait For in a different class module. Is this possible? If so, how do I reference...
  8. NFOBoy

    B4J Question For the VPS backend, which OS?

    Hi all, have been combing through the boards, and I see bits and pieces of references for backend stuff, but nothing definitive (perhaps that's the answer) about which way to go as far as selecting the OS for the Virtual Private Server (VPS) and B4J/I/A. For those that have experimented, any...
  9. A

    B4J Question ServerSocket and Multi Client Problem

    Hi I create a ServerSocket and connect with two client to server I can send messages from clients to server, but i can't find who is sending the message and can't answer to client! is there any way that astreams_NewData event show sender socket object?
  10. Patent

    B4J Question set Proxy to avoid CORS

    Dear community, wanna use a local Proxy in B4J to avoid CORS Problems. This is the Try: Sub Process_Globals Dim ho As String Dim po As Int End Sub Sub AppStart (Args() As String) ho="192.168.043.075" 'local ip po=8080 Dim j As HttpJob j.Initialize("j", Me)...
  11. C

    B4J Code Snippet Modbus TCP server - slave - restricted functionality

    Hello everyone, Here a small quick and dirty implementation of the modbus TCP protocol in B4J as a server / slave. Please note that this is not a complete library! The following limitations are: -Only READING (not writing) of holding registers possible by modbus master(function code 03) from...
  12. avalle

    B4J Question [Server] Wait For a SQLite data to change

    Hi, I understand how to use Wait For in a B4J Server Handler. However I have no idea how to pause a server handler class waiting for some data in a SQLite database to change. Anyone so kind to help? Thanks Andrea
  13. 3

    Italian connessione jdbc con host

    buongiorno a tutti, è da un po che tento di collegarmi al mio sqlserver ma non riesco in nessun modo. Public mysql As JdbcSQL Private driver As String = "com.mysql.jdbc.Driver" 'Private jdbcUrl As String = "jdbc:mysql://192.168.0.2:1433/SQLTutorial" Private jdbcUrl As String =...
  14. peacemaker

    Android Question Android server: battery state after uptime of month, 6 months, year

    Hi, All Who tried to use an Android device as the server that has been powered up during several months, or maybe year ? How is the battery state if such usage ? I think, now embedded control systems can be build basing on an Android device (also as server) + wired Ethernet LAN hosts of...
  15. 3

    Italian connessione a db sqlserver su server aziendale

    Buonasera, vorrei col mio telefonino creare un app che mi permetta di farel' update di dati che ho su un database aziendale. Di solito su VB.net usavo laconnessione OLEDB o SQLclient esiste qualcosa di simile? Quindi una volta aperta la connessione fare le query, le update ecc in sql. Ho...
  16. walterf25

    B4J Question MQTT accessed from outside

    Hi All, i'm working on a project which requires a device to send data over to a PC. I came across the MQTT library and I thought I would give it a try, i'm really amazed at how simple it is to set this up, whether running the MQTT Broker on a local P.C. or using one of the cloud host servers...
  17. L

    iOS Question B4i-Bridge installation on device

    I have lost 3 days attempting at installing the B4i-Bridge on the actual device and I am about to give up. My system is a MacBook Pro 2018 with 16 GB ram, B4i v4.30 installed on Windows 10 Enterprise running under Parallels Desktop 14.10, Build Server v4.30 installed on Mac side and attached to...
  18. N

    B4J Question JRDC2 Question

    Hi All, I'm trying to add the file download handler to JRDC2: with this code on linux server: 'Handler class Sub Class_Globals End Sub Public Sub Initialize End Sub Sub Handle(req As ServletRequest, resp As ServletResponse) Dim out As OutputStream Dim name As String =...
  19. avalle

    B4J Question Webhook service support

    Hi, I would like to add webhook support to one of my B4J Server application. I've not found anything about services, only client side. Does anyone has an idea or piece of code to start from? Can I achieve that with regular server code, or should I look at additional components? Many thanks in...
  20. MarkusR

    B4J Question authentication identity check at server?

    I try to use this solution with ssl: [Server] Data Collection Solution - Device, Desktop and Web reports https://www.b4x.com/android/forum/threads/server-data-collection-solution-device-desktop-and-web-reports.37254/#content In the DataCollectionDesktop App i will use Username & Password...
Top