Questions tagged [bind]

This tag means different things in different contexts: consider using less ambiguous tags instead. Common meanings include: the bind function in socket programming; binding to naming contexts; the bind method in jQuery; BIND the DNS server (named), . For boost::bind in C++, use [boost-bind]. Do not use this tag just to say that you're binding something to something else.

  • In and , bind() is a system call that associates an IP address and port number with a socket.
  • In , Function.prototype.bind() is a method to attach a function to a fixed this value.
  • In , bind is a method to attach a handler to an event. This method was deprecated in jquery v3.0
  • In , 'bind' is a connect/authenticate step.
  • in , 'bind' is the process of associating an object with a name in a context.
  • in , 'bind' is the process of associating a remote object with a name in an RMI Registry.
  • In , 'bind' is the process of associating an exported object with a name in a COSNaming context.
  • In bind or binding refers to specifying the target of an inject request.
  • In , questions about the library's boost::bind function should use the tag instead and questions about the function std::bind should use the tag .
  • BIND, the Berkeley Internet Name Domain is the most commonly used DNS server software on the Internet. Questions about BIND are often off-topic for StackOverflow and may belong on SuperUser.com or unix.stackexchange.com.
  • In , "bind" often refers to the >>= operator. Questions about it should use the tag .

Do not use this tag just to indicate that you're binding something to something else — use tags that are related to the topic of your question.

4006 questions
11
votes
4 answers

JQuery bind click event to checkboxes

Here's a basic view of what my html looks like:
// some html form elements including checkboxes
// more html code with more checkboxes
// data table with…
iJared
  • 887
  • 3
  • 13
  • 26
11
votes
1 answer

Perl Tk Bind is not Number Pad return?

I'm grabbing an ISBN from the user. Probably from a barcode scanner (EAN 18 digits terminated by Return) but it may be keyed in by hand (13 digits). If it is by hand, it'll come from the number pad and may end with "Number Pad Enter". I've added…
charlesbridge
  • 1,172
  • 10
  • 21
11
votes
2 answers

How to create a UDP server in C?

I'm trying to write a UDP server in C (under Linux). I know that in the socket() function I must use SOCK_DGRAM and not SOCK_STREAM. if ( (list_s = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0 ) { fprintf(stderr, "ERROR"); } But now, when I…
Marco Manzoni
  • 707
  • 3
  • 11
  • 21
11
votes
1 answer

JAXB xjc mapping to existing domain objects

I have done a lot of searching and cannot find a concise example of how to map an XML schema to existing domain objects instead of creating brand new ones utilizing xjc. I have created a bindings (xjb) file but still can find no way of…
colbyjax
  • 133
  • 1
  • 8
10
votes
4 answers

Boost bind placeholder argument equal to the number of Variadic Template arguments

I want to know if it is possible to use the number of arguments passed to a variadic template as placeholder in a boost::bind call. Something like this: template boost::bind(&function, this, anArg, _1)); //If Args count…
Blizter
  • 177
  • 4
  • 10
10
votes
3 answers

C++0x : Storing any type of std::function in a std::map

I'm trying to store a set of std::function in a map (under GCC 4.5) I'd like to get 2 kind of things : storing functions with arguments already passed; then you just have to call f() storing functions without arguments; then you have to…
codablank
  • 181
  • 2
  • 9
10
votes
3 answers

Spring LDAP - bind for successful connection

I'm trying to authenticate and then query our corporate LDAP using Spring LDAP and Spring security. I managed to make authentication work but when I attempt to run search I always get the following exception In order to perform this operation a…
Bostone
  • 36,858
  • 39
  • 167
  • 227
10
votes
2 answers

How to bind enter key to a tkinter button

I am trying to bind the Enter key with a button. In the bellow code, I am trying to get entries from the entry widget, when the button bt is pressed, it calls theenter() method which gets the entries. I also want it to be called by pressing the…
Rahul
  • 230
  • 1
  • 3
  • 15
10
votes
2 answers

How to properly bind onChange callback to 'this' with ReactJS, Redux, and ES2015?

I'm learning ReactJS and Redux, and I cant figure out how to get access to my TextField instance while binding it's onChange callback to this. (I'm using material-ui for this example, but I would encounter quite the same problem without it) import…
Romain Durand
  • 783
  • 1
  • 6
  • 22
10
votes
4 answers

Is jquery .bind() deprecated?

Is jquery bind() deprecated or it can be used safely? I see a lot of comments about bind() being deprecated in comments and answers across SO like: Jquery Event : Detect changes to the html/text of a div Is there a JavaScript/jQuery DOM change…
Claudiu Creanga
  • 8,031
  • 10
  • 71
  • 110
10
votes
1 answer

Bind function (delegate) arguments

I'm trying to achieve the following without using lambda function: Func test = () => RunSomething("test"); <-- This work fine but creates lambda Func test = bind(RunSomething, "test"); <-- Bind "test" to RunSomething In other words…
JobNick
  • 473
  • 1
  • 6
  • 18
10
votes
5 answers

Linux: Bind UDP listening socket to specific interface (or find out the interface a datagram came in from)?

I have a daemon I'm working on that listens for UDP broadcast packets and responds also by UDP. When a packet comes in, I'd like to know which IP address (or NIC) the packet came TO so that I can respond with that IP address as the source. (For…
Timothy Miller
  • 1,527
  • 4
  • 28
  • 48
10
votes
2 answers

Notify an Android service when a bound client disconnects

I have an android service in a remote process that can have multiple bindings from different clients. My question is, how can the service get notified when a specific bound client gets disconnected unexpectedly (i.e the client has crashed)? I can't…
Michael Gregorov
  • 541
  • 1
  • 6
  • 14
10
votes
1 answer

Bind with coffeescript

How can I call native bind method of function-object with coffeescript ? This is the example of what I am trying to achieve: window.addEventListener("load",function(e){ this._filter(true); }.bind(this); )
Miroslav Trninic
  • 3,327
  • 4
  • 28
  • 51
10
votes
1 answer

What is the summary of the differences in binding behaviour between Rebol 2 and 3?

The current in-depth documentation on variable binding targets Rebol 2. Could someone provide a summary of differences between Rebol 2 and 3?
Adrian
  • 741
  • 4
  • 14