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_read and omrsock_recv functions on Unix #5069

Closed
7 of 8 tasks
caohaley opened this issue Apr 15, 2020 · 0 comments
Closed
7 of 8 tasks

Comments

@caohaley
Copy link
Contributor

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

Omrsock functions to be implemented:
omrsock_send, omrsock_recv

Descriptions

omrsock_send and omrsock_recv are only for connected socket communication. If the sockets are not connected, omrsock_sendto and omrsock_recvfrom should be used.

omrsock_send sends a message of specified length, with specified flags if there are any and returns the number of bytes actually sent.

omrsock_recv blocks and waits for a message to be received into the buffer that that user pre-allocates that has specified in length.

Implementation Details:

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

The available flags will be added later on.

Unix Progress Tracker

caohaley pushed a commit to caohaley/omr that referenced this issue Apr 27, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 27, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 29, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Apr 29, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 3, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 19, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 19, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 25, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 26, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 26, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 26, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue May 28, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 4, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 4, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 4, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 4, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 8, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 8, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 9, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 9, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 11, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 11, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 11, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 11, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 14, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 14, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 15, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 19, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 19, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 19, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 19, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 19, 2020
Added Send and Recv to OMRSOCK API

- Simply calls the system socket api send and recv.
- System send and recv will block until the message is sent or
  received.
- Added small argument testing and set the error codes from system
  socket api.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 19, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jun 22, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
caohaley pushed a commit to caohaley/omr that referenced this issue Jul 2, 2020
- Contains a short test for stream communications between
  server and client.
- Server sends a message to client and client receives the
  message and then a comparison is done to see if the messages
  match.
- There is a while loop which loops if the message for some reason
  was not completely sent. In that case, it is the users'
  responsibilities to resend the remaining message.

Issue: eclipse-omr#5069

Signed-off-by: Haley Cao <haleycao88@hotmail.com>
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