Search:

Type: Posts; User: bean

Page 1 of 5 1 2 3 4

Search: Search took 0.18 seconds.

  1. Re: Simple File Transfer (Client-Server) implemented with Sockets

    not sure if it the problem as i find it hard to follow code in what ever language you speak but i got this error before



    Cliente_FTP.java:60: error: cannot find symbol

    it was caused by...
  2. Re: Multiple Server Connections From Single Client?

    as far as i know thi wouldint be possible with io libraries due to the port not being assignable but you could use nio librarys as your recorders would all be assigned different keys hav a look at...
  3. Thread: ice4j

    by bean
    Replies
    0
    Views
    241

    ice4j

    hi im trying to get to grips with p2p connections and how they get past nats. there only seems to be one java implementation STUN,TURN ETC which is ice4j but i cant find anything on how to use these...
  4. Replies
    1
    Views
    246

    Re: how does peer2 peer get past firewalls?

    i case its of interest to any one else they use a few different techniques one does involve a server relaying messages the other is called tcp hole punching
  5. Replies
    2
    Views
    360

    Re: How to verify that no connection internet?

    i had this problem before i use debian not sure if it will work on microcrap what i did is ping localhost to ensure it was up and running then ping a website such as google to see if i could reach it...
  6. Replies
    1
    Views
    246

    how does peer2 peer get past firewalls?

    hi this has my head wrecked and cant get my head around it 1st some assumptions
    1.
    if a computer out in the big bad web tries to send my computer data my routers NAT-PAT firewall will ingore it and...
  7. Thread: nio selectors

    by bean
    Replies
    0
    Views
    205

    nio selectors

    hi if i had a server for example a proxy server but needed clients to log in to use the service would there be any advantage of using 2 different selectors one for logging in and one for proxying...
  8. Replies
    3
    Views
    321

    Re: Grab data from webpage

    most websites try to prevent you from doing this you need to find the id of the element you want to grab. firebug (firefox addon) will help you examine the webpage and get the id or class or what...
  9. Re: Good resources for starting to learn Networking with Java

    im learning networking at the moment too i found this guys tutorial quite good at explaining and giving examples


    http://tutorials.jenkov.com/java-io/pipes.html
  10. Replies
    3
    Views
    437

    Re: why is for loop exiting early

    thats so obvious im feelin pretty stupid right now
  11. Replies
    3
    Views
    437

    why is for loop exiting early

    i have a for loop with .size() of 3 but is exiting at 2


    private ArrayList checkcontacts(ArrayList<String> cc){//checks online users
    System.out.println("aaa "+cc.size());//prints 3
    ...
  12. Replies
    3
    Views
    321

    Re: convert bytebuffer to string

    k sorry this code works in case its is of use to anyone stupid mistake on my part i was feeding a null value into it oops
  13. Replies
    3
    Views
    321

    Re: convert bytebuffer to string

    i found that it was encoded and must be decoded so i tryed this


    public static void geturi(SocketChannel chan) throws CharacterCodingException{
    ByteBuffer buf=ByteBuffer.allocateDirect(64);...
  14. Replies
    3
    Views
    321

    convert bytebuffer to string

    i have a server and a client sends a string using printstream this stream is sent into a ByteBuffer and stored


    geturi(acceptedChannel);sending feed to geturi method below

    the dqata is stored...
  15. Thread: nio keys

    by bean
    Replies
    1
    Views
    246

    Re: nio keys

    static void loop() throws IOException{
    selector.selectNow();//returns 0 if no channels are ready but allways returns
    for (SelectionKey key : selector.selectedKeys()) {//get keys registered...
  16. Thread: nio keys

    by bean
    Replies
    1
    Views
    246

    nio keys

    k i have been reading about java nio servers and im a bit confused about keys. As i understand a client connects to my server and gets registered to a channel you then loop through the keys of...
  17. Replies
    2
    Views
    260

    Re: what is the benifit of ServerSocketChannel

    k this link on oracle website explains things quite well


    https://blogs.oracle.com/slc/entry/javanio_vs_javaio
  18. Replies
    2
    Views
    260

    Re: what is the benifit of ServerSocketChannel

    k found the answer socketserver is part of java io and is farly limited compared to java nio a channel is kinda like a thread started when a connection is made to the serversocket when using nio (I...
  19. Replies
    2
    Views
    260

    what is the benifit of ServerSocketChannel

    hi just wondering what is the difference between instansiating a ServerSocket and .accept(); and a ServerSocketChannel .accept();
    they both listen on a port for incoming connections so what is the...
  20. Replies
    7
    Views
    1,509

    Re: hello, help please

    web sites can see lots about your computer other that your ip address they can see your webbrowser,timezone,httpheaders,cookies etc there are many sites that will show you extactly what they see when...
  21. Replies
    2
    Views
    350

    [SOLVED] Re: why is socket closing

    k the problem was PS.close does not just close the PrintStream it closes the outputstream too the solution was to flush instead and output a switch string to break loop receiving data on server side....
  22. Replies
    2
    Views
    350

    [SOLVED] why is socket closing

    hi i have 2 methods one sends data to a server and the other handles the reponse. the first method sends data fine but the second throws Socket is closed



    public void checkcontacts() throws...
  23. [SOLVED] Re: JpcapCaptor.getDeviceList() returns empty array

    is this it


    http://jpcap.sourceforge.net/javadoc/
  24. Replies
    5
    Views
    508

    Re: hashmap returning null value

    k all i had to do was tell the sets that they were holding strings the following works


    HashMap<String,Integer>server=new HashMap();
    server.put("wahh",1233);
    server.put("nahh",1233);
    ...
  25. Replies
    5
    Views
    508

    Re: hashmap returning null value

    well thats the thing debugger doesint give allot of info


    Listening on 37607
    User program running
    User program finished

    the problem is iter.toString() returns...
Results 1 to 25 of 112
Page 1 of 5 1 2 3 4