Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMRSOCK API: Implement omrsock_connect and omrsock_accept functions on Unix #5043

Closed
6 of 8 tasks
caohaley opened this issue Apr 9, 2020 · 0 comments
Closed
6 of 8 tasks

Comments

@caohaley
Copy link
Contributor

caohaley commented Apr 9, 2020

Working on Issue: #4102
/cc @rwy0717 @mpirvu

Omrsock functions to be implemented:
omrsock_connect, omrsock_accept

Descriptions

omrsock_connect is usually called by the client that wishes to connect to a server.
If the initiating socket is for datagram connections, omrsock_connect will set up peer address but no connection is actually made. When peer address is set, this datagram socket will be only for sending and receiving from the peer address. The peer can be switched with consecutive calls to omrsock_connect and can be disconnected from the peer with a call to omrsock_connect with NULL address.
If the initiating socket is for stream connection, omrsock_connect will attempt to establish a connection with the server address passed in. It will attempt to connect for a time interval and either fail or succeed. The nonblock functionality will be implemented and added in the future.

omrsock_accept is called to accept the first connection in the queue of pending connections. It will then return a new socket specifically for that connection.

Implementation Details:

The omrsock_connect function will be set up to call the system socket api connect function. It will be tested to see if it works on all Unix systems and if there is anything to be added.

The omrsock_accept function will call the system socket api accept function and will allocate memory for a new OMRSocket structure for the newly returned socket descriptor for the connection. This socket structure will be released when the user calls omrsock_close to close the socket. It is the user's responsibility to close the sockets at the end of their program.

Unix Progress Tracker

caohaley pushed a commit to caohaley/omr that referenced this issue Apr 14, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 14, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 15, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 15, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 28, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 28, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 28, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 29, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 29, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 30, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 30, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 30, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 30, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 5, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 5, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 5, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 5, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 6, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 6, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 6, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 6, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 13, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 13, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 13, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 14, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 19, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 19, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 19, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 19, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 20, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 20, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 21, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 21, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
@caohaley caohaley closed this as completed Jun 4, 2020
kbeaton2-UNB3035 pushed a commit to CAS-Atlantic/omr that referenced this issue Jun 23, 2020
omrsock_connect and omrsock_accept implemented

- omrsock_connect allows the client application to attempt
  to connect with a server address.
- omrsock_accept allows the server application to accept incoming
  connection requests. It also allocates a socket structure for
  the new socket that the server uses to talk to the connected
  client. The old socket is still used to listen to requests.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
kbeaton2-UNB3035 pushed a commit to CAS-Atlantic/omr that referenced this issue Jun 23, 2020
Added test cases for connect and accept functions

- Added a test case for setting up an IPv4 stream connection,
  using a INADDR_ANY server and localhost client.
- Added a test case for setting an IPv4 datagram connection, although
  no real connection is set. Used connect function to set up
  peer address.

Issue: eclipse-omr#5043

Signed-off-by: Haley Cao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants