How to make a peer to peer connection in a network using sockets

My Project is about a multi agent meeting scheduling system.. I've kept the DB in the server and I only use the server to retrieve data from the database. I have used sockets to communicate with the server.
Each peer in the network is an agent for a perticular user and these agents will be communicating with each other for negotiation purposes..
The problem I have is that, I couldnt communicate wit other peers using sockets.. I couldnt find any sample java code of sockets to overcum this problem.f sumone has a sample code plz send me.
And if there is a more efficient and easy way I can connect these peers except sockets, plz tell me and if u have a sample java code plz be kind enough to send.
This is my final year project in the University
Thank you
Sajini De Silva ([email protected])

Hi Sajinidesilva,
I think you'll find more support in the [JXTA Community|https://jxta.dev.java.net/] for your project. Also, there's an interesting article to start with : [Introduction to the Peer-to-Peer Sockets Project|http://www.onjava.com/pub/a/onjava/2003/12/03/p2psockets.html].

Similar Messages

  • How can I know which clients are connected to my network through express and which are connected through extreme?

    I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
    Here you can see both routers:
    I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
    Below, one can see the summary of the config for both routers.
    Would somebody explain it?
    Thanks,
    Marcelo
    Message was edited by: Marcelão

    please disregard this answer.
    Message was edited by: Marcelão

  • HT3867 automatically connect to known networks using wi fi is NOT working

    "automatically connect to known networks" using wi fi is NOT working. Please can any one help

    Hi jvichatt,
    Welcome to Apple Support Communities.
    You may find some of the steps in this article helpful for troubleshooting your Wi-Fi connections:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Best,
    Jeremy

  • How to make none root user to connect to TCP Port  (web ports)

    how to make none root user (any user)
    to connect to TCP Port 80 or port 81 or any port less than 1024
    cause i have web server i want to run and stop service with none root userand on port 80 and port 81
    can you help me and give me steps

    I believe Solaris 9 also has RBAC control. If so then all you need to do is present the uid with the PRIV_NET_PRIVADDR privilege. See the privielegs(5) manpage for more information on the subject.
    This privilege will allow the userid to bind to ports < 1024. You can give a user this privilege either by using usermod (you will probably need the auth_attr(4) manpage as well) after which you need to login again. Or you can try using ppriv to modify the privileges on the users shell.

  • How to make a method global so that it can be used in another component.?

    Hi,
    Is it possible to make a method global so that it can be used in another component.?
    i.e I have one component C1 and methods declared in this component M1, M2, ...
    Now I have another component C2 and in this component i want to use method M1 of component C1.
    how to do so?
    Any inputs will be appreciated.
    Thanx.

    Hi,
    As Uday said, To make the method as global of component say C1, You have to make method as interface by clicking the check box.
    Now while using the method in other component say C2, you have to follow following steps:
    1. In used component of comp. C2, add component C1.
    2. Instantiate the component atleast once in any of the method of component using code wizard option:
    'Instantiate Used Componet'.
    3. Now you can call the method of component C1 using code wizard option 'Method call in used controller'

  • How i make unlock i 4s verizon version 6.0 to use the USA simple mobile sim

    how i make unlock i 4s verizon

    You can not use a Verizon iPhone 4S with any US carrier other than Verizon. It's not possible.

  • How can I see what equipment is connected to my network?

    I use a Time Capsule for my home network. Is there a way for me to see each device that is connected to my network at any given time?
    There has been an unknown device continue to show up in finder under "shared".... I've reset my network password a couple times and the device continues to show up. (Its identified as "npica53cf")
    Thank you

    Its identified as "npica53cf"
    I think HP has used default network printer hostnames in the format: npi + last 6 digits of the device's MAC address (e.g. "ca53cf").

  • How can i load a swf AND connect to a network location?

    I'm working on a fairly large framework application that
    consists of a large number of seperate files (swfs, stylesheets,
    xml etc etc) all being loaded in and then connecting to a remote
    server.
    My problem is that when i compile all my library swfs with
    -use-network=false all is well - until i try a
    NetConnection.connect() call, when i get told i can't connect to an
    internet url from a local-with-filesystem swf.
    Ok, so i created a .cfg file and placed it in the
    FlashPlayerTrust directory, indicating that i'm giving permission
    for everything in my 'deploy' directory to be trusted - which
    should allow it to do anything it like (load files AND connect to
    the network). But after doing that i no longer get any sandbox but
    my NetStatusEvent is never fired! I receive neither a success or
    failure message from the NetConnection... it just sits there and
    nothing happens...
    Can anyone point me in the right direction, there seems to be
    precious little information about situations like this, just a lot
    of people asking similar questions...
    Thanks
    T

    like i said in the original post the framework is a series of
    libraries, they're loaded at runtime depending on what's required.
    if i have the netconnection in a single swf it'll work in the
    standalone player or in IE or FF.... it'll work if i launch it
    locally and connect to a remote server, or when i put it on the
    server and access it through a browser.
    it's when it goes into one of the libraries that it fails -
    so a base swf loads a configuration file which tells it which
    libraries it'll need, one of those libraries contains the
    netconnection code - and the NetStatusEvent of the NetConnection is
    never fired - so i neither succeed nor fail in my connection
    attempt
    T

  • How to make the payroll field in the assignment screen mandatory using personalization ?

    I am trying to make the payroll field required in the assignment screen using personalization , but it's not working, can anybody assist me ?
    Thanks.

    Hi,
    Navigate to Assignment Screen. Help > Diagnostic > Custom Code > Personalize
    Create a new  item : say "Mandatory Payroll Name"
    Condition:
    Trigger Event:WHEN-NEW-BLOCK-INSTANCE
    Trigger Object: ASSGT
    Actions:
    Object type: Item
    Target Object: ASSGT.PAYROLL_NAME
    Property Name: REQUIRED
    Value: TRUE
    Apply / Save.
    Exit form and re-enter Assignment Screen to check.
    HTH.
    Regards,
    Rajen.

  • How to make this work with Firefox, I like not to use microsoft products! HELP!

    Downloading for Realplayer, after watching the full movie, I click download and it has to reread the movie from the internet. When using explorer, after downloading the movie, it reads it from memory, which makes it a fast download. Hoow to make this work with Firefox, I like not to use microsoft products, and I really like Firefox 7.0.1!!!! HELP!

    -> click '''Firefox''' button and click '''Options''' (OR File Menu -> Options)
    * Advanced panel -> Network tab
    * place Checkmark on '''Override Automatic Cache Management''' -> under '''Limit Cache''' specify a large size of space
    * Remove Checkmark from '''Tell me when websites asks to store data for offline use'''
    * click OK on Options window
    * Restart Firefox
    Check and tell if ts working.

  • How to access time capsulewhen connected to other networks using back to my mac and iclous

    so i need help on using the back to my mac through iCloud to connect to my time capsule so i can access my time capsule when im connected to other networks like at work, firends house, school so i can get my files and use the timemachine

    Is the TC the main router in the network.. if not it doesn't work??
    Did you read the instructions Apple give for connection via BTMM?
    Most important.. you must have full access to icloud from behind whatever firewall your workplace, school etc has otherwise it won't work.
    Finally, don't use TM over BTMM.. it is far too slow and is going to corrupt the backup.. there is a huge amount of checking going back and forth.. the general internet upload speed is not good enough. Just use cloud for backup on the move.. forget try to connect to TM. Or carry a 2.5" drive which are light and portable.

  • I'm on an iphone that is no longer connected to the network, using it as an ipod touch. I can't download apps, however... it tells me that there is no secure connection and to update the date and the time. I'm not on a public network though...

    I am using an old iPhone 3 as an iPod touch. It's no longer connected to a network. I am trying to download apps while using a secure internet connection, however, it's not allowing me to do so. The message is gives is: "Cannot Connect to the Store" A secure connection could not be established. Please check your date and time settings."  I'm confused as to how I can fix this. The time seems to be correct, and I'm not using public internet.... Any suggestions??

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Not able to connect to wireless network using WEP 128 bit hex password

    I'm using a 128 bit hex WEP password on a Belkin wireless router.
    My ascii passphrase is 13 characters.
    I tried using the hex password generated by the Belkin router, as well as the hex equivalent of my ascii passphrase. Every time, I am told that either "there was an error connecting to the network" or the "password is incorrect" message.
    I'm using channel 7, but have also tried with channel 11.
    I tried using a $ sign in front of the WEP hex password. The $ does not work with Open Internet Connect or the Airport menubar.
    I can connect if I don't use any encryption on the wireless network, and also through the Ethernet cable.
    I have an iBook which connects fine to the wireless network.
    So why doesn't the iMac work the same way ?

    The security difference between NO encryption and any form of WEP is about 2 minutes or less for somebody looking to get in... besides having WEP enabled makes you look like an easy target since you think it'll stop anything!
    Either leave it off, making Hackers think at least 3 minutes about WHY, or use/setup WPA of one form or another!

  • Connecting to Wireless Network Using Windows in Boot Camp

    Hello!
    I installed Windows on my MacBook Pro, and I know how connect to the internet using Mac OS X, but I have no idea how to connect to my AirPort network in Windows. I know it must be simple, but I just don't know what to do.
    Thank you!

    I went to Microsoft's site and looked up how to connect to a wireless network. You have to enter the wireless address or something into Internet Explorer.
    -Hope this helps!

  • Cannot connect to 3G network using supplied app. Can someone help?

    I am resubmitting this question reworded for clarity, I hope.
    I'm in Nicaragua for several months and as a non-resident can't get wired internet to my house. Most people I know use a 3G or 4G dongle from Claro, one of two providors in Nicaragua. I bought a 3G dongle today, plugged it in, installed the Turbonett Movil app, and... nothing. Deleted the app, restarted and installed again but still nothing.
    Can anyone help me with this? I can't afford to throw away the $70 it cost for the dongle and one month's service.
    Thank you for reading this.
    Going through the ~home/library/preferences came across a file called com.trolltech.plist which had the following-
    bplist00fl         
                  #'*.26:=AEIMQUY]aeimqtxo dQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libMenuMgrPlugin∑dylibo jQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libNotifyServicePlugin∑dylibo hQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libNetInfoUIExPlugin∑dylibo ïQt Factory Cache 4∑6.com∑trolltech∑Qt∑QImageIOHandlerFactoryInterface:.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqmng∑dylibo cQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libXFramePlugin∑dylibo iQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqjpeg∑dylibo hQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqmng∑dylibo hQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqico∑dylibo ïQt Factory Cache 4∑6.com∑trolltech∑Qt∑QImageIOHandlerFactoryInterface:.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqgif∑dylibo iQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqtiff∑dylibo gQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libNetConnectPlugin∑dylibo hQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libDeviceMgrUIPlugin∑dylibo bQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libSMSUIPlugin∑dylibo cQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libUSSDUIPlugin∑dylibo hQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqsvg∑dylibo gQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libAddrBookUIPlugin∑dylibo ñQt Factory Cache 4∑6.com∑trolltech∑Qt∑QImageIOHandlerFactoryInterface:.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqjpeg∑dylibo cQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libLayoutPlugin∑dylibo eQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libDialupUIPlugin∑dylibo hQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqgif∑dylibo gQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libToolBarMgrPlugin∑dylibo iQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libStatusBarMgrPlugin∑dylibo ïQt Factory Cache 4∑6.com∑trolltech∑Qt∑QImageIOHandlerFactoryInterface:.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqico∑dylibo fQt Plugin Cache 4∑6∑false.Applications.Turbonett movil∑app.Contents.Resources.libSettingUIPlugin∑dylibo ñQt Factory Cache 4∑6.com∑trolltech∑Qt∑QImageIOHandlerFactoryInterface:.Applications.Turbonett movil∑app.Contents.Resources.imageformats.libqtiff∑dylib§    U40602Q0_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§  !"U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§$ %&U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16¢()_  2013-04-01T17:52:16Smng§+ ,-U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:17§/ 01U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§3 45U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§7 89U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16¢;<_  2013-04-01T17:52:16Sgif§> ?@U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§B CDU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§F GHU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§J KLU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:17§N OPU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:17§ RSTQ1Wunknown_  2013-04-01T17:52:16§V WXU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16£Z[\_  2013-04-01T17:52:16TjpegSjpg§^ _`U40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§b cdU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§f ghU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:16§j klU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:17§n opU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:17¢rs_  2013-04-01T17:52:16Sico§u vwU40602_  macosx macx g++-4 full-config_  2013-04-01T17:52:17£yz{_  2013-04-01T17:52:16TtiffStif =   fl ≤ fl ® } P # P
    ˆ
    … ê Y
    ˝ , ı ¬ ï f ; h 7 f k q s ì © Æ ¥ ‘ Í Ô ı   + . D H M S s â é î ¥   œ ’ ı       6 L O e i n t î ™ Ø µ ’ Î  ˆ   , 1 7 W m r x ò Æ ≥ µ Ω ” ÿ fi ˛     . 3 7 < B b x } É £ π æ ƒ ‰ ˙ ˇ   % ; @ F f | &#127; ï ô û § ƒ ⁄ fi Ù ˘  | ˝

    Sorry to tell you but this is a real problem with Mac OS X.
    Apple suggests that the printer be connected to the computer Via USB port while installing it.
    Yes you heard me right.
    Read this article.
    http://support.apple.com/kb/HT4670
    From that article.
    If the printer is a wireless capable printer and it is connecting to a wireless network, make sure it is properly connected to the wireless network first. The printer may have to be connected to the Mac initially via USB.
    Although it states that if the printer has wireless capabilities but it really doesn't matter if it does or doesn't. If it is a networked printer you may still have problems connecting to it

Maybe you are looking for

  • Cannot get the Mobile Template to work in SharePoint Foundation 2013

    Hello all, I am trying to get the Mobile View to work in SharePoint Foundation 2013. When I access the site on any phone it gives me the following error: "Cannot complete this action. Please try again." The URL it forwards me to is "http://<sitecolle

  • Yoga 13 touchscreen working intermittently

    My Yoga 13 touchscreen will suddenly stop working and then start working again. It usually stops working for anywhere from 15 minutes to 2 hours. I've been unable to figure out what driver enables the touchscreen, so I don't know what version I'm run

  • EXIT BADI FOR ME21N ME22N AND ME23N

    Hello Boys. I want  to change the field 'Tax code' (MWSKZ) in a Purchase order on transaction ME21N, ME22N AND ME23N. I want to change thios field in a BADI, USER EXIT or ENHANCEMENT-POINT. But I can't find where change this field. thanks for your he

  • COLUMN LIST

    Hi, is there a way to list the name of the column in the order it was created by the create table statement. I want to use the results in a sql loader control file. Regards, doPost=true

  • Prodessor usage and RSS feeds

    I've noticed that when I check my 'Blogs' RSS page (consisting of Engadget, Gizmodo, Lifehacker, Boing-Boing, 43 Folders, Dvorak, and TUAW) my processor usage spikes to 100% and the feeds take a really long time to load. My guess is this is because s