MSS on TCP/IP sockets

Is there any way, I can control the MSS of a TCP/IP socket? Or is there a library available with alternative sockets, where these parameter is accessible?

The MSS is determined by the Path MTU. Nothing to do with Java whatsoever.

Similar Messages

  • Serial Communication through TCP/IP Socket

    There are several companies offering a serial to ethernet software solution--emulating a terminal server, however they are all for Windows or MAC. I am looking for a starting point, examples, or a final solution (yeah) that is 100% java. In the field, the device is a RS232 LED board connected to a hardware terminal server. The message software writes to a TCP/IP socket. For testing, I would like my notebook's serial port to emulate the terminal server (I have been using TCP/COM from TAL tech for Windows). I bounce back and forth between Windows and Linux (dual boot) and would like one consistent solution for testing on most any platform/flavor.

    Check out this link:
    http://kaffe.iocon.dk/serialjavademo.html

  • Send xML packet to TCP/IP socket in SOA 11g

    Send xML packet to TCP/IP socket in SOA 11g
    Hi,
    I have a requirement like
    I need to pass xml data to TCP/IP socket in the form of packets in SOA11g.
    How we can do this.Please advise me.step by step procedure helps more.

    Hi,
    There is a JCA Adapter for Sockets available... Have a look at this doc...
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_sock.htm#BABEBEJH
    Cheers,
    Vlad

  • TCP/IP Sockets

    TCP/IP Sockets
    I need to write a server/client program which will implement a weather server.
    A text file in the same directory as the server will be updated daily(manually) and the server will send this information to clients on request.
    The client need only collect the weather report then exit.
    To start with have the server handle one request, then when this works correctly, change it to stay running and serve any number of requests as they come in. The server will have a loop that calls accept(), then spawns a new Thread to handle each request.

    Here's one suggestion:
    1. Create a Client class.
    2. Create a Server class.
    3. Create a SpawnedServer class.
    4. Create an Application or whatever that uses the Client class.
    1. The Client class has as a data member a Socket that connects to the server and gets the info.
    2. The Server class has a ServerSocket and also has a while true loop that does the following:
    Socket sock = servSock.accept()
    new SpawnedServer(sock).start()
    3. The SpawnedServer class has a Socket data member that gets initialized in its constructor that is
    called when it is created above. The SpawnedServer class extends Thread and does most of its work
    in the run method.
    4. Start the server.
    5. Run application programs as desired.
    Think of all of the things that you would want a Client to do:
    For example, open a connection, receive a message, close a connection, output the reply...
    Think of all of the things that you would want a SpawnedServer to do:
    receive a message, process a message, respond to a message...
    Implement a small portion. Test it. When it works, implement another and test it. Do this until completed.
    I hope this advice helps some. I am relatively new to the programming game, but have found that it is very helpful
    to implement piece by piece when a program is somewhat complex.
    Good luck.

  • Missing TCP/IP Socket from VISA Resource Property

    My Labview "VISA Resource Property" is not showing "TCP/IP Socket".  According to this website, it should:
    http://zone.ni.com/reference/en-XX/help/371361D-01/lvvisaprop/visa_object/
    I/O Session
    FireWire Instr
    GPIB BoardInterface
    GPIB Instr
    Instr
    PXI Backplane
    PXI Instr
    PXI MemAcc
    Serial Instr
    TCP/IP Instr
    TCP/IP Socket  RIGHT HERE
    USB Instr
    USB Raw
    VXI Servant
    VXI/GPIB-VXI Backplane
    VXI/GPIB-VXI MBD Instr
    VXI/GPIB-VXI/VME MemAcc
    VXI/GPIB-VXI/VME RBD Instr
    I'm using Labview 8.6.1 along with MAX 4.6.x  I'm able to see & utilize VISA TCP/IP Socket in MAX so I'm wondering how come I don't see it in Labview?  Is there a way to enable this?

    nevermind, I found a workaround.  I just type cast "TCP/IP Socket" from a "instr" VISA control

  • "ODBC Error= [17] [] "[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQ

    Hi,
    I am getting the above error when trying to connect to a database located on remote database. if the database is on same system no problem.
    any clue???????pls help me.

    The full error msg is as follows and the back ground of the problem is decribed below...pls help me out.
    I have written some perl programs to be called by java to execute some database related tasks. My database located at a remote win2K server and database is MSSql and my programs are executing on WIN2k server. The problem is with perl talking to remote database...the following error is displaying...
    "ODBC Error= [17] [] "[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied."

  • Problem regarding tcp/Ip sockets

    I have created a TCP/IP socket connectiion to the remote server .We take new socket each time we communicate and release it after use. But at some point in the code, we might not have released the socket OR that might be the problem of linux version, but eventually linux, is not assigning a new socket to our system, and every communication with remote server is appeared as if 'No Connection to remote server is avaliable'. Currently only solution to this problem is, we need to restart the 'our Machine', which afterwords returns sockets as we want. So, we need to find out either 1) There is a problem in our code, that at some point in the code, we are not releasing the sockets OR 2) Wheather theres problem with Linux version we are using, for handling sockets.

    Don't mess with soLinger unless you really knowwhat
    you are doing, and if you do you don't need
    reuseAddress.I am not sure why you think the above. If you want
    the old socket connection to close but want to
    reconnect to the same ip and port as before it may be
    necessary depending on the type of protocol for
    socket allocation the receiving end is using. I know
    from experience.Messing with reuseAddress is only necessary if you are trying to reuse the same local port for the client end of the connection, and why would you want to do that? If you like the one you've already got why close it?
    Messing with SO_LINGER is only usually seen if you are opening and closing sockets so quickly that you exhaust the local port space before 2*MSL has expired, and again the real answer is 'dont': use the connections for > 1 transaction if possible. The disadvantage of disabling SO_LINGER is that you have to be sure your last write has been received, because the system will throw away any pending write data on close. Appplication protocols where the SO_LINGER=false side finishes with a read rather than a write won't mind this, others will.
    Also the behaviour with SO_LINGER=false is platform-dependent.
    In my experience, people seem to try all these things, without really understanding what they do, in an effort to find solutions to the wrong problem.

  • Switching from Named Pipes to Tcp/Ip sockets : can I use the same DB or will I loose my data?

    Hi,
    we use MDT 2013 in conjunction with a local SQL Express 2012 database. I configured MDT to use Named Pipes but I want to switch to TCP/IP sockets. Is it possible to change that Network Library for an existing database? Am I going to loose the contents of
    the existing db? Thanks for your insights.
    Paul

    Just did a testrun with a test deployment share. Made a db with Named Pipes, filled in some values. Created a new db and I was able to choose between some existing databases. I chose the test db and yes all the values are in it.
    Next I tried it with my main db and indeed nothing is lost. Pfjew.
    Paul

  • How to interface a tuxedo app with another application that uses tcp/ip socket  messaging

    How would you interface a tuxedo app with another application that
    uses tcp/ip socket messaging? I have a vendor product that offers
    a tcp/ip message interface, and would like to know how best to
    integrate it into a tuxedo application. I could write a C application
    that listens and accepts incoming request from the vendors application,
    and then make a tuxedo client call to a service. But this doesn't
    allow me to control the listen thread through tuxedo. The C application
    would have to be started seperately and would not take advantage
    of the tuxedo restart facilities etc of a tuxedo service.

    You can make an empty server only with tpsvrinit that starts your client
    listeners and a tpsrvdone that stops them. Be carefull with sharing ipcs
    between processes, or your clients may get puzzled!!!
    Another choice can be builting a custom WSL/WSH but I haven't done
    this yet and I don't know exactly the troubles related with making them.
    R.G.
    Travis Ward wrote:
    How would you interface a tuxedo app with another application that
    uses tcp/ip socket messaging? I have a vendor product that offers
    a tcp/ip message interface, and would like to know how best to
    integrate it into a tuxedo application. I could write a C application
    that listens and accepts incoming request from the vendors application,
    and then make a tuxedo client call to a service. But this doesn't
    allow me to control the listen thread through tuxedo. The C application
    would have to be started seperately and would not take advantage
    of the tuxedo restart facilities etc of a tuxedo service.

  • TCP/IP socket programming in ABAP

    Hi,
    Is there any method of TCP socket programming in ABAP? For example is there any function module for creating a socket for a IP address and port number. After that, is it possible to send binary/text data to a connected IP/port destination. I need such a solution because I need to send raw data (native commans) to barcode printer on our network which has a static IP address and listens incoming data through a fixed port number specified in its documentation. For a solution, I coded some .NET VB and built a small application that acts as a RFC server program which can be called by SAP according to definitions I made in SM59 (I defined a new TCP connection and it works well sometimes!). In this application, data coming from SAP are transferred to the barcode printer. This is achived by the .NET Socket class library. This solution works well but after a few subsequent call from SAP, connection hangs! SAP cannot call the application anymore, I test the connection in SM59 and it also hangs, so I need to restart the VB application, but this is unacceptable in our project.
    As a result, I decided to code the program that will send data to the printer in ABAP as a function module or subroutine pool, so is there any way to create a socket in ABAP and connect to specific IP/port destination? I searched for possible function modules in SE37 and possible classes in SE24 but unfortunately I could not find one. For example, do know any kind of system function in ABAP (native commands executed by CALL statement), that can be used for this purpose?
    I would appreciate any help,
    Kind regards,
    Tolga
    Edited by: Tolga Togan Duz on Dec 17, 2007 11:49 PM

    Hi,
    I doubt that there is a low level API for sockets in ABAP. There is API for HTTP but probably that won't help you. As a workaround you can use external OS commands (transactions SM69 and SM49). For example on Unix you can use netcat to transfer file. Your FM needs to dump data into folder and then call netcat to transfer file.
    Cheers

  • Communicating with Crestron using tcp/ip sockets

    Greetings...
    I trying to finish a desktop application written in Java that connects to an automation controller(Crestron) via sockets (TCP/IP). My main problem is that the connection is constantly going down. I have a thread that is always running to check if the connection is up, when it's brocken just puts it up again.
    Then i have another thread that's always running also to get the data that the
    Crestron controller sends me.
    The connection is broken usually by receiving a null.
    Is there any tip to solve this kind of trouble?
    The java app. is client and the Crestron is a server. Also i'm running the app. in Windows XP.
    It's a fix ip and the port is 4444.
    Also if anyone has experience of making software that interects with Crestron Controllers, please tell me something.
    Thanks for the help

    Sorry, but if your connection keeps getting dropped and your client does not close the connection then there is only one source: the controller itself is closing the connection. It may be some kind of timeout that is causing that the connection is closed. In any way, it is most likely not java but hardware / setting related.

  • I need a reliable (auto reconnect, no data loss, etc) TCP/CP Socket class

    I have been searching for a third party (free or pay) socket class that will do things that all of us programmers must do:
    reconnect when socket is disconnected
    reconnect and re-send data (so no data loss)
    and implementing all of these other features that we all require for "reliable" network communications over public networks.
    I would like to use this socket class on both my client and server applications. Does one exist somewhere? It certainly must. I want something that is tried and proven. free is great with open source but paying money is okay too. thanks !

    I am surprised at these responses. Using JMS or creating my own ARQ seems to not meet my requirement (lots of overhead in the case of JMS you usually need a middle "server" and the overhead is huge in high bandwidth situations -- lots of cpu and extra bandwidth -- and the ARQ is a nice idea but i really dont want to create anything myself)
    The fact is TCP/IP is unreliable over the internet. anyone who tries to use sockets over the internet recognizes this. It is not an issue of my application but the fact of the internet. the internet is designed with the assumption that the internet is unreliable (hence why the government created ARPA and the internet)
    so what if i loosened the requirement and said it was okay to lose some packets, but i just need something that knows the other side is alive and will reconnect/discnonect appropriately? doesnt this exist already? i mean every tcp/ip programmer is doing this and anyone who implements tcp/ip with the assumption that the "network is reliable" is going to be in big trouble. It doesnt need to be TCP, it can be a reliable UDP (i dont care what transport is used) but i just need something where i can take my existing code, drop in this new class instead of "Socket" and get my project done. it would be nice if it had features like reconnecting, dropping data if it is too old or if there are too many messages. i will be using it in high bandwidth applications (20-50mbps over the internet) and dont need 100% packet reliability, if we drop some packets due to a hiccup that is ok, but i do need it to be intelligent in reconnecting and such.

  • TCP/IP Sockets Comunication by user defined DLL Class

    i will describe it briefly. i need to create a dll class to establish a socket communication and that dll class i should use it between the client App and the server App. but the main task is not done yet which is how to enforce editing to the display
    controls in both Apps by the Class functions. that is it. any help will be appreciated.

    "what i missing here is how to enforce any control on the server App to display the received messages once the client thread send it"
    You cannot enforce this simply by creating a class and/or putting it into a library.  Your MySocket class could generate an event when a message is received but you cannot force client code to do anything about it.  It
    is responsibility of the server code to handle the message and react accordingly.
    "I know i have to specify by coding a specific function on the server side to override another function in the created socket class and that what i'm trying to do."
    Client and server have nothing to do with each other in this case.  Your server side code isn't going to be able to do anything on the client side.  That is the whole reason you're using a client-server architecture.  You can create a client
    class that receives pre-defined messages from the server and handles them.  You can also make these methods virtual so that clients can derive from your client class and do something different for the messages it cares about. 
    //Code on server side
    public class MyServer
    public void SendMessage ( string message )
    //Send message via socket
    //Code in client side type that can be re-used by any client
    public class MyClient
    protected virtual void OnMessageReceived ( string message )
    //Do something with the message
    private void HandleMessagesFromServer ()
    //Infrastructure to monitor socket for messages,
    //determine "message" received and call appropriate
    //method for processing
    //Ex: If server sent a message containing a single string
    OnMessageReceived(stringFromServer);
    //A client may override the behavior for the message(s)
    public class MyCustomClient : MyClient
    protected override void OnMessageReceived ( string message )
    base.OnMessageReceived(message);
    //Notify my UI of the message
    Alternatively you could define a series of events that are raised when messages are received. 
    //Server code doesn't really change
    //Client code uses events instead of virtual methods
    public class MyClient
    public event EventHandler<MessageReceivedEventArgs> MessageReceived;
    private void ProcessMessagesFromServer ()
    //Responsible for watching the socket for messages,
    //translating the messages from the socket and
    //raising the event(s)
    //i.e. Raising an event
    if (MessageReceived != null)
    MessageReceived(this, new MessageReceivedEventArgs(stringFromServer));
    //Clients can handle events instead
    public class SomeUIElement
    //Some initialize method
    private void Initialize ( MyClient client )
    client.MessageReceived += OnMessageReceived;
    private void OnMessageReceived ( object sender, MessageReceivedEventArgs e )
    //Do something with message like display it
    //Note: This is probably not running on UI thread
    Either approach allows a client to react to notifications from the server.  However on the server side all you really need to do is send the appropriate message via the socket.  The client is responsible for reacting to that message in whatever
    way is most appropriate. 
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Socket communication via TCP-IP

    Hi,
    I am new to CF and would like to establish TCP-IP socket
    communication with a remote server. How can I exchange XML messages
    with a remote server / port via TCP-IP. Do I need to use the event
    gateways of does CF offer another way of setting up socket
    communication ?
    Many thanks in advance !
    John

    Do I need to use the event gateways of does CF offer another way
    of setting up socket communication ?
    I would say, yes, use the socket gateway that ships with
    Coldfusion. However, it has a functionality I cannot really
    understand. If you are a client setting up a socket to connect to
    the gateway, the gateway expects your code to have, beforehand, a
    value for the variable
    originatorID. Yet,
    originatorID is a large, unique integer that the gateway
    code generates when you connect. That seems to me to be a
    chicken-and-egg dilemma.

  • Socket (TCP) connection to proprietary port

    Anyone ever tried to create a tcp socket connection to another machine on a non-reserved port from a java app loaded into Oracle 8.1.5? I have been able to do so with other sites/ports but am unable to create a socket with one particular site. I am baffled because the exact same code I am using connects perfectly if run from a non-Oracle JVM on the OS. Anyone have experienced this before?
    Baffled,
    Jason.

    There are no problems using sockets from Oracle 8i JVM.
    As you are using 8.1.5 you may need to garnt JAVAUSERPRIV or
    JAVASYSPRIV roles to the users.
    JAVAUSERPRIV privileges:
    - open a TCP/IP socket
    - read or write from a file using UTL_FILE_DIR
    JAVASYSPRIV privileges:
    - all the privileges associated with JAVAUSERPRIV
    - create a subprocess
    - listen on a specific network port
    - set the socket factory
    - set the stream handler
    - read or write from any file
    If your problem is specific please feel free to update this thread with more details.
    Regards
    Ravi

Maybe you are looking for

  • Java 1.5.0_17 core dumps

    Hi All, We have a java application which works in protocol level. Our java application uses JNI to interact with others modules which are written in C++. We are doing stress testing on the application. after that, we are stopping the java application

  • Ref import exported 8.1.7 oracle database including webtools procedures

    Hello, I was using an old 8.1.7 oracle database with pl/sql procedures with webtools. Is it possible use them in 10g? If yes. How? Thank you, Marius Darie

  • What services do employee discounts get applied to?

    So I just found out my job enables me to get an 18% discount for my bill. It says that the 18% discount is for "eligible services". Anyone know what services are eligible? Will it just be 18% of my total bill? Thanks.

  • Launch illustrator with script from commandline

    Hi, (Illustrator CC 2014 on Windows 7) I had hotkeys defined using AutoHotkey to execute a script in illustrator by executing a commandline, and with the script as an argument. This used to work fine, but it has suddenly stopped working for me, maybe

  • Video Capturing Question (Revised)

    My Panasonic PVGS400 digital video camera (miniDV) has USB, S-Video and DV ports, but no Firewire port. I think this camera is only a couple of years old. Can this camera be used to capture to FCP? If not, is there a workaround, such as some sort of