Socket for broadcast and receive?

Hi all,
sorry for cross post but I need an answer soon.
The server need to broadcast an inviting message continuosly. and at the same time the socket is able to receive any messages from the client.
I use 2 threads. One iniiated with Socket for listening and the other multicast socket with datagram.
However, I don't think I did it the right way?????
one thread: skt = new ServerSocket(4446);
broadcast thread:
MulticastSocket socket = new MulticastSocket(4446);
InetAddress address = InetAddress.getByName("230.0.0.1");
socket.joinGroup(address);
DatagramPacket packet;
any suggestions?
Any souce code for server and client?
any documents, url?
thanks
andrew

ServerSockets go with MulticastSockets like baloney and whip cream.
ServerSockets are for connection-based sockets.
MulticastSockets are for connection-less datagram sockets
Pick one type based on your requirements and stick with it.
Either ServerSockets and Sockets
or MulticastSocket with MulticastSocket.

Similar Messages

  • Socket for both broadcast and receive?

    Hi all,
    The server need to broadcast an inviting message continuosly. and at the same time the socket is able to receive any messages from the client.
    I use 2 threads. One iniiated with Socket for listening and the other multicast socket with datagram. However, I don't think I did it the right way?
    one thread: skt = new ServerSocket(4446);
    broadcast thread:
    MulticastSocket socket = new MulticastSocket(4446);
    InetAddress address = InetAddress.getByName("230.0.0.1");
         socket.joinGroup(address);
    DatagramPacket packet;
    With this, how can the client receive and send at the same time?
    Any souce code for server and client?
    any documents, url?
    thanks
    andrew

    ServerSockets go with MulticastSockets like baloney and whip cream.
    ServerSockets are for connection-based sockets.
    MulticastSockets are for connection-less datagram sockets
    Pick one type based on your requirements and stick with it.
    Either ServerSockets and Sockets
    or MulticastSocket with MulticastSocket.

  • Prerequisites for Sender and Receiver FTP adapter

    Hi Experts,
    I am new to PI and configuring simple file to file scenario. I need to know the prerequsites for sender and receiver FTP adapter. Scenario is System A -> XI -> System B .
    What I want to know is:
    1> What ports need to be opened?
    2> Any service that I need to activate?
    3> Do I need to install FTP server in any of the machine?
    If I have missed something, please add.
    Br,
    Nilz

    Hi,
    1> What ports need to be opened?
    mentioned in below link as said its 21.
    2> Any service that I need to activate?
    No
    3> Do I need to install FTP server in any of the machine?
    THere are two ways by which u can pick ur file.
    1) NFS by which u can put the file on XI appplication directory and pick up ur file.
    2) FTP u have to put ur file on FYP server and XI will pick up the file from there. U can use freeware FTP and install it on ur Desktop search on goolge u will get ti FTP installtion.
    refer the below configuration requirement for FIle adapter.
    http://help.sap.com/saphelp_nw04/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    ALso refer the end to end file to file scenario.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
    chirag

  • My phone number is not coming up as an option for sending and receiving imessages

    My phone number is not coming up as an option for sending and receiving imessages

    You do not have a "phone number".    Your ipad has a cellular access number and can't make phone calls. 
    You must use your apple ID email for imessage and FaceTime on iPad.

  • COPA: how to identify which cost element for sender and receiver in IMG

    Hi Guru,
    I know my cost element for sender and receiver from the settlement document, but where in IMG, i can identify how it settup to use which cost element for my sender - order , which cost element should be used for my reciever profit segment.
    Thanks,
    Kick

    Hi,
    Go to KEI1
    Select your transfer structure
    double click on assignment lines
    check the source and value fields to get the mapping.
    Regards,
    Sridevi
    <i><b>Pls. assign points, if useful</b></i>

  • TCODES FOR SENDINGIG AND RECEIVING DATA THROUGH ALE

    Hi,
    All,
    Message type I can find for the following :
    Equipment master: EQUIPMENT_CREATE
    Work centre: WORKC2, WORKC3 or WORKC4
    Functional location: FUNC_LOC_CREATE
    but i did'nt  find  a transaction code for sending and receiving data through ALE.
    For example:  Send material    T.code BD10,
                         Receive material T.code BD11.
    Please give the solution.
    Regards.

    can Tx BD21 is of any help

  • TS3276 I have no sound on my MacBook Air for sending and receiving messages. All sound settings have been checked and are OK. This problem has arisen many times and is intermittent in the sense that the sound returns and disappears for no apparent reason.

    I have no sound on my MacBook Air for sending and receiving messages. All sound settings have been checked and are OK. This problem has arisen many times and is intermittent in the sense that the sound returns and disappears for no apparent reason.

    Open System Preferences > Sound > Sound Effects
    Select:  Play user interface sound effects
    And make sure the Mute box is not selected.
    Now open Mail. From the Mail menu bar clik Mail > Preferences then select the General tab.
    Make a selection from the:  New messages sound  pop up menu.

  • Just purchased photoshop cs6 for windows and received installation disk.

    Just purchased photoshop cs6 for windows and received installation disk.  Where do you find the serial number on the disk?  What should the serial number start with?  The disk was in the original box and I see a number that start with 910.....
    The box was in a brown envelope and there is barcode sticker on the back with more numbers.  Where should I look for the actual serial number. 

    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • Hi i use iphone 4 with iso 6.1.3!! Am not getting an option to register my phone number in imsg!! Am just getting an option to set my email address for sending and receiving the imsgs!! How do i register my phone number??

    Hi i use iphone 4 with iso 6.1.3!! Am not getting an option to register my phone number in imsg!! Am just getting an option to set my email address for sending and receiving the imsgs!! How do i register my phone number??

    Hello Nikkii,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Troubleshooting telephone-number activation (iPhone only)
    After each step, toggle FaceTime and iMessage off and then on in Settings > Messages and Settings > FaceTime.
    Update to the latest version of iOS.
    Ensure that your iPhone is set to the correct time zone. Tap Settings > General > Date & Time.
    Note: If Set Automatically is on but the incorrect time zone is displayed, turn Set Automatically off and then choose the correct time zone, date, and time. Then turn Set Automatically on again.
    Ensure that FaceTime has not been restricted: Settings > General > Restrictions > FaceTime.
    Verify that you can send SMS messages. You need a valid SMS messaging plan to activate FaceTime.
    Contact your carrier to verify that there are no restrictions or blocks on text messages. Blocks on text messaging will prevent iMessage and FaceTime registration.
    If you are unable to activate iMessage or FaceTime on a device after remote wiping it, wait at least 24 hours and try again.
    If "Waiting for Activation" is displayed, leave FaceTime and iMessage enabled for 24 hours. Toggling FaceTime or iMessage off and on will cause the registration process to start over.
    Best of luck,
    Mario

  • FAX machine with Manual function & option to connect PC for Send and receive

    Nearly every MFD out there has these capabilities.  I know the Ricoh, Konicaminolta, and the Kyocera can do this.  The larger machines the fax needs to be installed as an option.  Once installed you have walk up fax, scan to PC, Scan to e-mail, Fax forwarding to PC, or e-mail and if the driver is installed you can fax from your PC through the copier.

    Hi to the Community
    We have a requirement of FAX machine which should fulfill
    our below requirements
    Manual mode for sending and receiving Fax as Traditional
    Second option required is it can be connected to PC so that
    fax can be sent and receive directly from computer as well
    I know to set up windows fax option to fulfill the second
    requirement, but we need both options
    If anyone knows a specific model, kindly let me know
    This topic first appeared in the Spiceworks Community

  • Please..how to instal libero mail on mi Ipad. I need the parameter for send and receive mail..Thanks

    Please..how to instal "libero" mail on my Ipad. I need the parameter for send and receive mail..Thanks

    FYI: POP will by default, delete messages from the server after downloading them (This applies to most pop clients, computer or mobile). POP is old tech and is not recommended if IMAP or Exchange are available. The default when setting up a g-mail type account is IMAP. Full synchronization with the server. You may also be able to set it up as an Exchange account, allowing for push e-mail and sync of calendars and contacts as well. See the Gmail help pages for instructions.

  • My iphone font for typing and receiving emails is stuck in large font and I can not reset it to small

    My font size for typing and receiving emails is stuck in large and I can not reset it using, settings, mail, font size buttons.

    Jim, where were you when i asked the same question a couple of months ago?! After updating software two months ago my email font was stuck in large and couldn't get it to change. posted issue on forum, called apple support, went to genius bar, went to 1 to 1 and NO ONE could figure it out. Your solution is right on. You the man Jim!

  • Can we use same Business Service for Sender and Receiver

    Can we use same Business Service for Sender and Receiver

    Hi
    In addition to the above infomation explaining about the Business Service..
    Business Service: Address an abstract business entity as the sender or receiver of messages.
    Using a business service, you can define the technical or business subunits of the companies involved and then assign them the relevant interfaces.
    The business services are used when configuring cross-company processes also..
    regards
    Kishore

  • Different Ports for Sender and Receiver?

    For testing a tool it would be nice to run RTPSender and Receiver on the same computer. But here?s the problem. I run VideoTransmit and AVReceive2 (both from the Sun code samples) with the following parameters. VideoTransmit should send to IP A and to Port 22224. AVReceive2 should listen to packets from IP B and Port 22224. Now VideoTransmit sends from a random port, but Port 22225 is used on both computers for exchanging user information. Because of this it isn?t possible to run both on the same computer because both want to use port 22225 for a connection.
    Is there a possibility to change this?

    http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/
    RTPManager
    http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/javax/media/rtp/RTPManager.html
    SessionManager-Depricated
    http://java.sun.com/products/java-media/jmf/2.1.1/apidocs/javax/media/rtp/SessionManager.html
    You can Send and Receive on one computer.
    Can't remember the combo though.
    It's one of
    transmit 192.168.1.255 22222 //multicastIP port#
    receive 127.0.0.1 22222 //localhost port#
    or
    transmit 192.168.1.100 22222 //computerIP port#
    receive 127.0.0.1 22222 //localhost port#
    There is the answer in these forums somewhere.
    I just hate to see people struggle.

  • Each message shows same date and time for sent and received.

    Each of the thousands of messages in Mail shows that the message was sent and received at the same time. Somehow, Mail is displaying incorrect information. In other words, the "date sent" and "date received" columns are identical. What can I do to Mail to get it to put the correct "sent" time in the column?

    Are you asking a question or making a suggestion? If you're asking if you can change Messages to show the time stamp for every message, no, you can't. If you are trying to make a suggestion to Apple, the appropriate place to do that is here:
    http://www.apple.com/feedback

Maybe you are looking for

  • Is there a way to get new album index styles?

    I would like to use a different album index style other than the one offered in I web. Is there a way to get new ones or make different styles?

  • Outgoing mail stays in the outbox.

    I am unable to send mail on my Macbook Pro (OSX, version 10.9.5). It appears to send, but when I check the outbox, it is still there. This happens with and without attachments. The problem doesn't appear to be with my gmail account.

  • What's the best way to store old FCP projects & media?

    Hey I've started to accumulate more and more video content of client projects, but I don't want to delete it in case they come back a year later looking for an update on the video product I made them. So, what's he best way to store FCP projects and

  • Map _attributes_ dynamically. How to?

    Good day. I'm struggling with a following problem. I need to dynamically create and map attributes. I've read the document "Dynamically Creating, Building and Mapping a Context in Web Dynpro", it was a bit helpful but it doesn't fit all my requiremen

  • SSO with Apex 4.1.1.00.23

    Hello Apex community, i want to implement a SSO solution between an apex and non-apex application. This solution worked with Apex 4.0 but seems not to work with current 4.1.1.00.23. I've set up a test case on hosted environment. Dev User: Workspace: