I’ve faced with a very weird problem. The built-in JAX WS server implementation works 100 times slower on linux machines then on Mac OS X or Windows. I’ve created and shared a JMH test: https://github.com/Andremoniy/linuxjvmjaxwstest Basically it does the following: starts a JAX WS with one SOAP method: endpoint = Endpoint.publish(“http://localhost:8888/”, new FooServiceImpl()); performs client requests to this method: String
Tag: sockets
Server not accepting request on port 9999
I am trying to deploy my socket[phpws library] on amazon EC2 instance. For this I deployed code and run socket. I have selected port 9999 for socket handshake, but it is not working. I tried to captured request on this server by command : Then I hit this port, I did not received any request. I thought this is because
How to ensure a posix c socket is still valid
I,m working on an embedded linux kernel 2.6 device and need to know if previously established socket is still valid or not,Also I can not do this with usual send function and check the returned value,because if I send to the invalid socket descriptor,my application will crash and linux will shut down my process.Is there any other function/suggestion for this
socket recv function not returning updated value
Trying to create socket application using c (Linux) to constantly fetch data from a server For this I have created a loop and inside it the routine connects , send a command, receive some data and close the socket. It works fine for the first interaction but looks like the recv function failing to update the buffer variable from second
getnameinfo() compile time error – Extracting MAC address in Linux
I have to send to the server the IP address and MAC address of the network interface from which my client socket is connected and communicating with the server. All machines are on intra-net. I have extracted the IP of my socket and I am attempting to extract the H/W address. My strategy : Extract IP of the socket using
Who can send to a socket bound to INADDR_LOOPBACK?
I’m somewhat new to socket programming, and am confused about the concept of binding a socket to the address INADDR_LOOPBACK, or 127.0.0.1. If I’m writing server code to listen for messages on a specific port, and I bind a socket to an address as in the following code exerpt… …my question is: who is able to send to this socket?
Output a linux command to a url/port or scocket instead of writing it to a file
I have a command which out outputs certain data which i store in a ext file using a ‘>>’ command.Now Instead of doing that I want to have a socket or a port on any server which will catch the output of the command.Basically i want to output all my script data to a socket or url which ever is
sudo doesn’t work, but root user works [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Can I be sure that a UDP recv executed immediately after a successfull call to recv with MSG_PEEK will not block?
Assume the following code (for the sake of simplicity I’ve omitted the necessary error handling here): In that case: Can I be sure that after the first call to recv the whole datagram is already received and therefore the second call to to recv will not block? Or can it happen that if IP splits the datagram, the first recv
Domain argument to socket() and socketpair()
I’ve been studying Linux socket programming recently, and the concepts are still swirling and unsettled in my head. Can someone confirm or correct my understanding of the domain argument to socket() and socketpair(): one should choose PF_LOCAL (or PF_UNIX) if one wants the socket communication to be strictly within the same computer, and one should choose PF_INET if the socket