You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

maXim

Trainee

  • "maXim" is male
  • "maXim" started this thread

Posts: 53

Date of registration: Jan 5th 2009

Location: Sesto Fiorentino, Florence (ITALY)

Occupation: design & development (HW, SW & FW)

Hobbies: chess, fly fishing, good wine and beautiful women!

  • Send private message

1

Tuesday, February 10th 2009, 5:47pm

db2000 lightchat

db2000 lightchat

db2000 lightchat is really a simple project and doesn't introduce any particular difficulty for the source code interpretation. Anyone who wants to improve the project, by making changes or new integrations (ex. different colors for the texts of the messages, multi-users and multi-rooms, etc.), may do so and is welcome! ;)


maXim has attached the following file:

This post has been edited 1 times, last edit by "maXim" (Apr 3rd 2020, 1:08pm)


Moogly

Beginner

  • "Moogly" is male

Posts: 17

Date of registration: Mar 9th 2009

  • Send private message

2

Monday, March 9th 2009, 5:48pm

hey thanks for this example, I was wondering why Jabaco uses the winsock component and if I use it will it work on Linux? I thought Winsock was just windows? or have they re-coded it so it uses same name but different 'library' like a java winsock library or something? I'm new to Jabaco and I'm like in LOVE with the idea of coding in VB6 with the power of JAVA, means faster code which is a MUST for me since I'm into performance. Anyways, would appreciate an answer from anyone really :P I need to know!

Manuel

Administrator

  • "Manuel" is male

Posts: 256

Date of registration: Jul 16th 2008

Location: Erlangen, Germany

Occupation: Software Developer

Hobbies: Jabaco, game theory, text-mining

  • Send private message

3

Monday, March 9th 2009, 8:04pm

Quoted

I thought Winsock was just windows?

The interface is similar to the Winsock class of Visual Basic. That's the only reason for the name - Jabaco Winsock works on every Java platform. FYI: You are also able to use the Java socket directly.

Moogly

Beginner

  • "Moogly" is male

Posts: 17

Date of registration: Mar 9th 2009

  • Send private message

4

Tuesday, March 10th 2009, 12:25am


Quoted

I thought Winsock was just windows?

The interface is similar to the Winsock class of Visual Basic. That's the only reason for the name - Jabaco Winsock works on every Java platform. FYI: You are also able to use the Java socket directly.
Thanks very much for the clarification this is very good news for me man, thanks I'm like falling in love with this language. Thanks a lot for your help man! :D

Tr4d3r

Beginner

  • "Tr4d3r" is male

Posts: 12

Date of registration: Mar 16th 2009

Location: Caracas, Venezuela - Bogota, Colombia

Occupation: Senior Developer - SLM Sistemas

Hobbies: Developing, Securiy, others

  • Send private message

5

Monday, March 16th 2009, 11:46pm

TCP Server Help.

Hello, excelent sample ... thanks a lot ... i'm a socket developer in VB6 ... i want to migrate all my applications to JABACO ... but, at this moment i'm really new, so i need to understand a lot of issues ...

First at all, how can i make a socket server? in vb6 you make a winsock array ... normally the index 0 is the listener, and any other runtime loaded winsock control will acept all the connections from the clients ... i try to make a winsock array in jabaco, but is not working, so i think this is not the way to do this .. and i'm a little lost ...

I want to start making a Bicubic Filter ... a proyect to connect and is used as a secure gateway or proxy for tcp connections ...

Can someone help me with an example of a multi socket server?

Thanks a lot ... i have a lot of questions ... there is a manual or something?

I want to collaborate with examples and explanations .. but, the first person who need help at this moment is ME.

Bye4now.

Tr4d3r.

PD/Excellent application JABACO ... really cool ! Congrats

Moogly

Beginner

  • "Moogly" is male

Posts: 17

Date of registration: Mar 9th 2009

  • Send private message

6

Tuesday, March 17th 2009, 12:45am

RE: TCP Server Help.

Hello, excelent sample ... thanks a lot ... i'm a socket developer in VB6 ... i want to migrate all my applications to JABACO ... but, at this moment i'm really new, so i need to understand a lot of issues ...

First at all, how can i make a socket server? in vb6 you make a winsock array ... normally the index 0 is the listener, and any other runtime loaded winsock control will acept all the connections from the clients ... i try to make a winsock array in jabaco, but is not working, so i think this is not the way to do this .. and i'm a little lost ...

I want to start making a Bicubic Filter ... a proyect to connect and is used as a secure gateway or proxy for tcp connections ...

Can someone help me with an example of a multi socket server?

Thanks a lot ... i have a lot of questions ... there is a manual or something?

I want to collaborate with examples and explanations .. but, the first person who need help at this moment is ME.

Bye4now.

Tr4d3r.

PD/Excellent application JABACO ... really cool ! Congrats
Same problem me and my friend are having, we're used to using Indexe's for each connection.

GoldenShox

Beginner

Posts: 1

Date of registration: Mar 16th 2009

  • Send private message

7

Tuesday, March 17th 2009, 12:50am

From Moogly Above:

We are making a winsock server, it has to send and recieve data, It has to send data to the client, it keeps track of the socket number by making the index + 1 but I noticied that the Jabaco Winsock has no index field so, we are having trouble recreating our program.

Moogly

Beginner

  • "Moogly" is male

Posts: 17

Date of registration: Mar 9th 2009

  • Send private message

8

Tuesday, March 17th 2009, 7:47am

We finally got our project working, we'll post some sampler code of our methods later, maybe we'll expand this lightchat into a 'larger' chat and post source. But anyways I'm about to head to bed, I'm just looking for one of the MySQL connectors that was posted here to add and the java ini file stuff ;p anyways im tired + im off

vicente

Beginner

Posts: 4

Date of registration: Feb 25th 2010

  • Send private message

9

Monday, March 1st 2010, 11:10pm

Manuel said: "You are also able to use the Javasocket directly"
Could anybody give an example how to do that in Jabaco ?

Thanks
Vicente

A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

10

Tuesday, March 2nd 2010, 8:33am

The idea is to port one of the numerous Java socket samples to Jabaco.
As far as I know, there is no such sample available yet in this forum.
Manuel showed a possible starting link.

You'll find Java/Jabaco portings samples throughout this forum.

Give it a try!

A1880

Tr4d3r

Beginner

  • "Tr4d3r" is male

Posts: 12

Date of registration: Mar 16th 2009

Location: Caracas, Venezuela - Bogota, Colombia

Occupation: Senior Developer - SLM Sistemas

Hobbies: Developing, Securiy, others

  • Send private message

11

Tuesday, October 5th 2010, 3:31am

Hello .. i convert the code to Jabaco and is working ...

Dim Sock As Winsockserver
Dim ClientSocket As Socket
Import java.net.*

Public Sub main(ByJava args() As String)
Dim myArgs() As String
myArgs = args
' [Your Source]

out.println "Starting..."
serverSocket = New ServerSocket(90)
out.println "Waiting Conections"
ClientSocket = serverSocket.accept()
out.println "Client Connected: " & ClientSocket.getRemoteSocketAddress.toString

Dim sout As PrintWriter = New PrintWriter(ClientSocket.getOutputStream(), True)
Dim sin As BufferedReader = New BufferedReader(New InputStreamReader(ClientSocket.getInputStream))
Dim inputLine As String , outputLine As String

inputLine= sin.readLine
While inputLine <> Null
out.println inputLine 'Write to console the received buffer
inputLine= sIn.readLine
Wend

Rate this thread
WoltLab Burning Board